DADD MACRO X,Y,Z                ;8088宏汇编程序
     MOV AX,X
     ADD AX,Y
     MOV Z,AX
     ENDM

_STACK SEGMENT STACK            ;定义堆栈段
    DW   64 DUP (?)             
_STACK ENDS                     

DATA SEGMENT
        STR1  DB  'GOOD AFTERNOON$'
DATA ENDS

CODE    SEGMENT                 ;定义代码段
ASSUME CS:CODE,SS:_STACK,DS:DATA

START:  MOV  AX,_STACK
        MOV  SS,AX              ;初始化cs,ss,ds
        MOV  AX,DATA
        MOV  DS,AX

        MOV  DX,OFFSET STR1     ;取字符串首地址
        MOV  AH,09H             ;设置输出字符串
        INT  21H                ;输出该字符串
A1:     JMP  A1

CODE   ENDS
    END     START